package com.wm.wmim.server.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * 聊天列表表(ChatList)实体类
 *
 * @author weiming
 * @since 2025-02-20 23:16:29
 */
@Data
@TableName("t_chat_list")
public class ChatListDO implements Serializable {

    private static final long serialVersionUID = 847340440146283124L;

    /**
     * 主键id
     */
    private Long id;
    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 好友ID
     */
    private Long friendId;
    /**
     * 最新消息内容
     */
    private String lastMessageContent;
    /**
     * 最新消息时间
     */
    private LocalDateTime lastMessageTime;

    /**
     * 未读消息数
     */
    private Integer unreadMessageCount;

    /**
     * 显示状态
     * @see com.wm.wmim.server.enums.ChatListDisplayStatusEnum
     */
    private String displayStatus;

}

